package com.aseo.business.hibernate;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.aseo.model.dao.Dao;
import com.aseo.model.entity.hibernate.Reclamador;

@Service
public class ReclamadorManager implements ManagerInterface<Reclamador> {

	@Resource  
	private Dao dao;
	
	@Override
	public List<Reclamador> getAll() {
		final List<Reclamador> list = dao.find(Reclamador.class);  
	    return list;
	}

	@Override
	public void persist(Reclamador t) {
		dao.persist(t);
	}

}
